package Api;

import sun.security.krb5.internal.PAEncTSEnc;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class IterarorTests {
    public static void main(String[] args) {
        Collection c=new ArrayList();
        c.add(1000);
        c.add("你好");
        Iterator iterator=c.iterator();
        while  (iterator.hasNext()){
            Object obj=iterator.next();
            System.out.println(obj);
        }
    }
}
